import request from '@/utils/request'

const baseUrl = '/api/product-inventory'

export function saveProductInventory(data) {
    return request({
        url: `${baseUrl}/save`,
        method: 'post',
        data
    })
}

export function getProductInventoryList(params) {
    return request({
        url: `${baseUrl}/list`,
        method: 'get',
        params
    })
}

export function getProductInventoryDetail(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'get'
    })
}

export function deleteProductInventory(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'delete'
    })
} 